
#include "CmdlineParameters.h"

CONTROLLER_SCREEN CmdlineParameters::s_eScreen = CONTROLLER_SCREEN_NONE;

void CmdlineParameters::InitCmdlineArgs(int argc, char* argv[])
{
	for(int iArg = 0; iArg < argc; iArg++)
	{
		if( argv[iArg][1] == '\0' )
		{
			// one-char args are useless to us, go on...
			continue;
		}
		if( argv[iArg][0] == '-' && argv[iArg][2] == '\0' )
		{
			switch(argv[iArg][1])
			{
				case 'c':
				{
					s_eScreen = CONTROLLER_SCREEN_EDITOR;
				}
				break;
				
				default:
				{
				}
				break;
			}
		}
	}
}

void CmdlineParameters::SetCmdlineScreen(CONTROLLER_SCREEN* peScreen)
{
	*peScreen = s_eScreen;
}

//eof
